package com.game.message.pb;

import com.game.message.Msg;
import com.game.message.transport.DataBuffer;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/6/16.
 */
public abstract class PBMessage extends Msg implements Serializable {
	protected int userId;
	private int sId;
	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	private int msgId;

	public void setMsgId(int msgId) {
		this.msgId = msgId;
	}

	public int getMsgId() {
		return msgId;
	}

	public abstract void decode(DataBuffer buffer);

	public abstract byte[] encode();

	public int getsId() {
		return sId;
	}

	public void setsId(int sId) {
		this.sId = sId;
	}
}
